package com.mdd.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mdd.common.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Data
@TableName("oms_product_spu")
@EqualsAndHashCode(callSuper = true)
@ApiModel("商品spu实体")
public class ProductSpu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "商品 SPU 编号，自增")
    private Long id;
    @ApiModelProperty(value = "商户id")
    private Long deptId;
    @ApiModelProperty(value = "商户code")
    private String deptCode;
    @ApiModelProperty(value = "商品名称")
    private String name;
    @ApiModelProperty(value = "关键字")
    private String keyword;
    @ApiModelProperty(value = "商品简介")
    private String introduction;
    @ApiModelProperty(value = "商品详情")
    private String description;
    @ApiModelProperty(value = "商品分类编号")
    private Long categoryId;
    @ApiModelProperty(value = "车型编号")
    private Long brandId;
    @ApiModelProperty(value = "咨询押金")
    private BigDecimal deposit;
    @ApiModelProperty(value = "最低月供起")
    private BigDecimal monthlySupplyPrice;
    @ApiModelProperty(value = "金融方案图片地址，存在地址可查看")
    private String caseUrl;
    @ApiModelProperty(value = "商品封面图")
    private String picUrl;
    @ApiModelProperty(value = "商品轮播图地址 数组，以逗号分隔 最多上传5张")
    private String sliderPicUrls;
    @ApiModelProperty(value = "商品视频")
    private String videoUrl;
    @ApiModelProperty(value = "排序字段")
    private Integer sort;
    @ApiModelProperty(value = "商品状态: 0 上架（开启） 1 下架（禁用）-1 回收")
    private Integer status;
    @ApiModelProperty(value = "规格类型：0 单规格 1 多规格")
    private Integer specType;
    @ApiModelProperty(value = "商品类型（0、长租商品 1、零售商品 2、批量采购商品）")
    private Integer type;
    @ApiModelProperty(value = "商品价格，单位使用：元")
    private BigDecimal price;
    @ApiModelProperty(value = "市场价，单位使用：元")
    private BigDecimal marketPrice;
    @ApiModelProperty(value = "成本价，单位： 元")
    private BigDecimal costPrice;
    @ApiModelProperty(value = "库存")
    private Long stock;
    @ApiModelProperty(value = "商品销量")
    private Integer salesCount;
    @ApiModelProperty(value = "整车质保年限")
    private String warranty;
    @ApiModelProperty(value = "三电质保年限")
    private String eicWarranty;
    @ApiModelProperty(value = "宽度尺寸单位（mm）")
    private Integer width;
    @ApiModelProperty(value = "智能座位")
    private String seat;
    @ApiModelProperty(value = "安全守护")
    private String secure;
    @ApiModelProperty(value = "品质空调（空调出风口数）")
    private String airConditioning;
    @ApiModelProperty(value = "栏目")
    private Integer columnId;
    @ApiModelProperty(value = "适用门店：0、指定门店 1、全部")
    private Boolean isAll;
}
